package model.dao;

import java.util.List;

import model.entity.Secretaria;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;


public class SecretariaDAO extends BaseDAO{

	public SecretariaDAO() {
		super(Secretaria.class);
	}
 
	public Secretaria findByNome(String nome){
		Criteria criteria = this.createCriteria();
		
		criteria.add(Restrictions.like("nome", nome));
		return (Secretaria) criteria.uniqueResult();
	}
	
}
